package jps_s10996_s7175.expression.binary;

import jps_s10996_s7175.ast.Expression;
import edu.pjwstk.jps.ast.IExpression;
import edu.pjwstk.jps.ast.binary.IBinaryExpression;
import edu.pjwstk.jps.visitor.ASTVisitor;

public class BinaryExpression extends Expression implements IBinaryExpression {

    private IExpression LeftExpression;
    private IExpression RightExpression;

    public BinaryExpression(IExpression left, IExpression right) {
        super();
	this.LeftExpression = left;
	this.RightExpression = right;
    }

    @Override
    public void accept(ASTVisitor visitor) {}

    @Override
    public IExpression getLeftExpression() {
        return LeftExpression;
    }

    @Override
    public IExpression getRightExpression() {
        return RightExpression;
    }

    @Override
    public String toString() {
        return this.getClass().getName() +
                " > " + this.LeftExpression.toString() +
                " \n > " + this.RightExpression.toString() +
                "\n";
    }

}
